<template>
	<view class="ku-content">
		<view class="ku-section ku-margin-top-80">
			<view>
				<view class="ku-lg-title ku-text-theme">仓储管理系统</view>
				<view class="ku-mini-title ">Warehouse Management System</view>
			</view>

			<!-- <view class="ku-margin-top-40">
				<u-row gutter="16">
					<u-col span="6">
						<view class="ku-card" @click="notOpen">
							<view class="ku-icon-round">
								<u-icon name="grid" color='#ffffff' size='28'></u-icon>
							</view>
							<u-row>
								<u-col span="10">
									<view class="ku-mini-title ku-padding-top-40">布卷信息</view>
									<view class="ku-xs-title">
										暂未开放
									</view>
								</u-col>
								<u-col span="2">
									<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
								</u-col>
							</u-row>
						</view>
					</u-col>
					<u-col span="6">
						<view class="ku-card" @click="notOpen">
							<view class="ku-icon-round ">
								<u-icon name="search" color='#ffffff' size='28'></u-icon>
							</view>
							<u-row>
								<u-col span="10">
									<view class="ku-mini-title ku-padding-top-40">库存查询</view>
									<view class="ku-xs-title">
										暂未开放
									</view>
								</u-col>
								<u-col span="2">
									<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
								</u-col>
							</u-row>
						</view>
					</u-col>
				</u-row>
			</view> -->

			<view class="ku-margin-top-40">
				<u-row gutter="16">
					<u-col span="6">
						<view class="ku-card" @click="toOutboundList">
							<view class="ku-icon-round ku-button-warning">
								<u-icon name="arrow-upward" color='#ffffff' size='22'></u-icon>
							</view>
							<u-row>
								<u-col span="10">
									<view class="ku-mini-title ku-padding-top-40">出库列表</view>
									<view class="ku-xs-title">
										立即查看
									</view>
								</u-col>
								<u-col span="2">
									<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
								</u-col>
							</u-row>
						</view>
					</u-col>
					<u-col span="6">
						<view class="ku-card" @click="toPackinglist">
							<view class="ku-icon-round ku-button-primary">
								<u-icon name="download" color='#ffffff' size='22'></u-icon>
							</view>
							<u-row>
								<u-col span="10">
									<view class="ku-mini-title ku-padding-top-40">装箱入库</view>
									<view class="ku-xs-title">
										立即操作
									</view>
								</u-col>
								<u-col span="2">
									<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
								</u-col>
							</u-row>
						</view>
					</u-col>
					
				<!-- 	<u-col span="6">
						<view class="ku-card" @click="notOpen">
							<view class="ku-icon-round ">
								<u-icon name="arrow-downward" color='#ffffff' size='22'></u-icon>
							</view>
							<u-row>
								<u-col span="10">
									<view class="ku-mini-title ku-padding-top-40">入库列表</view>
									<view class="ku-xs-title">
										暂未开放
									</view>
								</u-col>
								<u-col span="2">
									<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
								</u-col>
							</u-row>
						</view>
					</u-col> -->
				</u-row>
			</view>
			
		</view>
		<CustomTabbar></CustomTabbar>
		<u-notify ref="uNotifyRef"></u-notify>
	</view>
</template>

<script>
	import Logo from "@/components/logo";
	import CustomTabbar from "@/components/CustomTabbar";
	import {
		barcodeScan
	} from "@/api/index.js";
	const App = getApp();
	//引入vue
	import Vue from "vue";
	import store from "../../store";
	//必须实例化
	var vm = new Vue();

	export default {
		components: {
			Logo,
			CustomTabbar
			// RadioGroup,
		},
		data() {
			return {

			};
		},

		/**
		 * 生命周期函数--监听页面加载
		 */
		onLoad(options) {
			// 当前页面参数
			// this.initEmitMonitor();
		},

		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		methods: {
			// 暂未开放
			notOpen(){
				this.$refs.uNotifyRef.show({
					top: 10,
					type: 'primary',
					message: '暂未开放',
					duration: 1000 * 3,
					safeAreaInsetTop: true
				})	
			},
			// 子元素事件监听--初始化
			// initEmitMonitor() {
			//   // 选择环境
			//   uni.$on("environmentCallback", (params) => {
			//     // console.log("选择环境---params---", params);
			//     this.environmentType = params.value;
			//     store.state.active = params.value;
			//     // console.log("store.active-------------", store.state.active);
			//   });
			// },
			// 出库列表
			toOutboundList() {
				this.$navTo('pages/warehouse/outboundHistoryList', {})
			},
			//去扫码
			toScanCode() {
				this.$navTo('pages/warehouse/index', {})
			},
			// 装箱出库
			toPackinglist() {
				this.$navTo('pages/warehouse/packingList', {})
			},
			
			
		},

		/**
   * 
''   * 下拉刷新
   */
		onPullDownRefresh() {},

		/**
		 * 分享当前页面
		 */
		onShareAppMessage() {},

		/**
		 * 分享到朋友圈
		 * 本接口为 Beta 版本，暂只在 Android 平台支持，详见分享到朋友圈 (Beta)
		 * https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share-timeline.html
		 */
		onShareTimeline() {},
	};
</script>